package news.entity;

import java.util.Date;


public class News {
	private Integer newId;
	private String newsTitle;
	private Date newsCTime;
	private String newsContent;
	private String newsImg;
	private Admin adminId;
	private Board boardId;
	
	public News() {
	}
	
	public News(String newsTitle, Date newsCTime,
			String newsContent, String newsImg, Admin adminId, Board boardId) {
		this.newsTitle = newsTitle;
		this.newsCTime = newsCTime;
		this.newsContent = newsContent;
		this.newsImg = newsImg;
		this.adminId = adminId;
		this.boardId = boardId;
	}
	
	public News(Integer newId, String newsTitle, Date newsCTime,
			String newsContent, String newsImg, Admin adminId, Board boardId) {
		this.newId = newId;
		this.newsTitle = newsTitle;
		this.newsCTime = newsCTime;
		this.newsContent = newsContent;
		this.newsImg = newsImg;
		this.adminId = adminId;
		this.boardId = boardId;
	}
	public Integer getNewId() {
		return newId;
	}
	public void setNewId(Integer newId) {
		this.newId = newId;
	}
	public String getNewsTitle() {
		return newsTitle;
	}
	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}
	public Date getNewsCTime() {
		return newsCTime;
	}
	public void setNewsCTime(Date date) {
		this.newsCTime = date;
	}
	public String getNewsContent() {
		return newsContent;
	}
	public void setNewsContent(String newsContent) {
		this.newsContent = newsContent;
	}
	public String getNewsImg() {
		return newsImg;
	}
	public void setNewsImg(String newsImg) {
		this.newsImg = newsImg;
	}
	public Admin getAdminId() {
		return adminId;
	}
	public void setAdminId(Admin adminId) {
		this.adminId = adminId;
	}
	public Board getBoardId() {
		return boardId;
	}
	public void setBoardId(Board boardId) {
		this.boardId = boardId;
	}
	
	
}
